
package cn.nubia.admin.application.bean;

import cn.nubia.admin.common.utils.DateUtil;

import java.io.Serializable;

/**
 * Created by justin on 15/6/29.
 * CREATE TABLE `nb_soft_evaluating` (
 * `id` int(11) NOT NULL,
 * `category_id` int(11) DEFAULT NULL COMMENT '分类',
 * `logo` varchar(150) DEFAULT NULL COMMENT 'logo 地址',
 * `title` varchar(50) DEFAULT NULL COMMENT '标题',
 * `summary` varchar(250) DEFAULT NULL COMMENT '简介',
 * `content` longtext COMMENT '详情',
 * `pic_url` varchar(150) DEFAULT NULL COMMENT '图片地址',
 * `soft_id` int(11) DEFAULT NULL COMMENT '相关联软件',
 * `state` tinyint(4) DEFAULT NULL COMMENT '状态（-1 删除 0 隐藏 1 显示）',
 * `publish_time` int(11) DEFAULT NULL COMMENT '发布时间',
 * `add_time` int(11) DEFAULT NULL,
 * `last_modify_time` int(11) DEFAULT NULL COMMENT '最后修改时间',
 * PRIMARY KEY (`id`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='最美应用';
 * <p/>
 * SET FOREIGN_KEY_CHECKS = 1;
 */
public class SoftEvaluatingVO implements Serializable {

    public static int STATES_SHOW = 1;
    public static int STATES_HIDDEN = 0;
    public static int STATES_DEL = -1;


    private static final long serialVersionUID = -8244661101951482489L;
    private Integer id;
    //分类
    private Integer categoryId;

    //分类名称
    private String categoryName;

    private String stateName;


    //logo 地址
    private String logo;
    //标题
    private String title;
    //简介
    private String summary;
    //详情
    private String content;
    //图片地址
    private String picUrl;
    //相关联软件
    private Integer softId;
    //状态（-1 删除 0 隐藏 1 显示）
    private Integer state;
    //发布时间
    private Integer publishTime;

    private String publishTimeShow;
    //添加时间
    private Integer addTime;
    private String addTimeShow;

    //最后修改时间
    private Integer lastModifyTime;
    private String lastModifyTimeShow;

    private String refererUrl;

    private Integer firstCategoryId;
    private Integer secCategoryId;
    private Integer thirdCategoryId;


    public String getRefererUrl() {
        return refererUrl;
    }

    public void setRefererUrl(String refererUrl) {
        this.refererUrl = refererUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public Integer getSoftId() {
        return softId;
    }

    public void setSoftId(Integer softId) {
        this.softId = softId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Integer publishTime) {
        this.publishTime = publishTime;
        if (publishTime > 0) {
            publishTimeShow = DateUtil.getFormatDate(publishTime);
        }
    }

    public Integer getAddTime() {
        return addTime;
    }

    public void setAddTime(Integer addTime) {
        this.addTime = addTime;
        if (addTime > 0) {
            addTimeShow = DateUtil.getFormatDate(addTime);
        }
    }


    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public Integer getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Integer lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
        if (lastModifyTime > 0) {
            lastModifyTimeShow = DateUtil.getFormatDate(lastModifyTime);
        }
    }

    public Integer getFirstCategoryId() {
        return firstCategoryId;
    }

    public void setFirstCategoryId(Integer firstCategoryId) {
        this.firstCategoryId = firstCategoryId;
    }

    public Integer getSecCategoryId() {
        return secCategoryId;
    }

    public void setSecCategoryId(Integer secCategoryId) {
        this.secCategoryId = secCategoryId;
    }

    public Integer getThirdCategoryId() {
        return thirdCategoryId;
    }

    public void setThirdCategoryId(Integer thirdCategoryId) {
        this.thirdCategoryId = thirdCategoryId;
    }
}
